package com.lzl.decorator.v2;


import java.util.List;

/**
 * 真正装饰器
 * 管理员栏导航
 */
public class AdminNavBarDecorator extends AbstractNavBarDecorator {
    public AdminNavBarDecorator(INavBar navBar) {
        super(navBar);
    }

    @Override
    public List<NavItem> getNavItems() {
        List<NavItem> navItems =  super.getNavItems();
        navItems.add(new NavItem("管理员"));
        return navItems;
    }
}
